@import "./config";

/*
    初始化页面布局
*/

html,
body {
    height: 100%;
    font-size: 14px;
    background-color: #f5f5f5;
    font-family: PingFangSC-Regular, sans-serif;
}
#app {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    max-width: 640px;
    margin: auto;
    height: 100%;
    font-size: 13px;
    background: #f5f5f5;
    -webkit-tap-highlight-color: transparent;
}
@topic-font:{font-family: PingFangSC-Regular, sans-serif};                                                   

* {
    outline: none;
}

ul,p,h2 {
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: @main;
}

.common-typeicon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    height: 80px;
    .icon {
        padding: 20px 5px;
    }
    .iconfont {
        display: block;
        font-size: 34px;
        transform: rotate(35deg);
    }
    .icon-topic-top {
        color: red;
    }
    .icon-topic-good {
        color: green;
    }
}

.weui-tabbar {
    left: 0;
}

.rep-bottom {
    color: #fb685b;
}

img {
    &[lazy=loading] {
        width: 32px;
        height: 300px;
        margin: auto;
    }
}

.topic-hd {
    padding: 12px 0;
    box-sizing: border-box;
}

.topic-inner {
    display: flex;
    width: 138px;
    height: 30px;
    line-height: 30px;
    background-color: #fff;
    text-align: center;
    border-radius: 15px;
    border: 1px solid #e6e6e6;
    font-size: 14px;
    color: #494949;
    margin: 0 auto;
}

.topic-btn {
    flex: 1;
    position: relative;
    &.active {
        color: #fb685b;
    }
}

.right-line:after {
    content: " ";
    position: absolute;
    width: 1px;
    height: 50%;
    top: 25%;
    right: 0;
    background-color: #e6e6e6;
    transform-origin: 100% 0;
    -webkit-transform-origin: 100% 0;
    -webkit-transform: scaleX(0.5);
    transform: scaleX(0.5);
}

.common-title {
    background: -webkit-linear-gradient(left, #fd996d, #ff5c5c);
    /* Safari 5.1 - 6.0 */
    background: -o-linear-gradient(right, #fd996d, #ff5c5c);
    /* Opera 11.1 - 12.0 */
    background: -moz-linear-gradient(right, #fd996d, #ff5c5c);
    /* Firefox 3.6 - 15 */
    background: linear-gradient(to right, #fd996d, #ff5c5c);
    /* 标准的语法 */
}

.bt1,
.bb1 {
    position: relative;
}

.bt1:before {
    position: absolute;
    content: " ";
    left: 0;
    top: 0;
    right: 0;
    border-top: 1px solid #e6e6e6;
    transform-origin: 0 0;
    transform: scaleY(0.5);
}

.bb1:after {
    content: " ";
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 1px;
    border-bottom: 1px solid #C7C7C7;
    transform-origin: 0 100%;
    transform: scaleY(0.5);
}

.mint-header.is-fixed {
    z-index: 2;
}

.v-c{
    display: flex;
    display: -webkit-flex; 
    align-items:center;
    -webkit-align-items: center;
}
.h-c{
    display: flex;
    display: -webkit-flex; 
    justify-content: center;
    -webkit-justify-content: center;
}
.a-c{
    display: flex;
    display: -webkit-flex; 
    justify-content: center;
    -webkit-justify-content: center;
    align-items:center;
    -webkit-align-items: center;
}
.flex-colum{
    display: flex;
    flex-direction: column;
}
.rt-r-fa{
    margin: 0.4rem 0.5rem;
    display: flex;
    justify-content: space-between;
    img{
      width: 3.02rem;
      height: 0.86rem;
      pointer-events: none;
    }
}
.one-line{
    overflow: hidden;/*超出部分隐藏*/
    white-space: nowrap;/*不换行*/
    text-overflow:ellipsis;
}
.two-line{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.touch_action{
    touch-action: none
}
.whiteback {
    width: 100%;
    background-color: white;
}
.vipimg{
    width: 0.24rem;
    height: 0.24rem;
    position: absolute;
    // top: 0.76rem;
    // left: 0.5rem;
}
.v-h{
    right: 0.1rem;
    bottom: 0.1rem;
}
.shuo-rule{//闲置、说说版规
    height: 0.6rem;
    line-height:0.66rem;
    position: fixed;
    left:0;
    top: 1.75rem;
    width:100%;
    background:#fee4df;
    justify-content: space-between;
    border-top:1px solid #ffc8b1;
    border-bottom:1px solid #ffc8b1;
    padding-left:0.3rem;
    z-index: 1;
    .gui-img{
        width: 0.75rem;
        height: 0.6rem;
        text-align: center;
        img{
          width:0.18rem;
          height:0.18rem;
        }
    }
    span{
      color:#FB695B;
      font-size:0.24rem;
    }
  }